﻿using Ace.AutoMapper;
using Ace.Entity.Wiki;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Text;

namespace Ace.Application.Wiki
{
    public class ALogInputBase: ValidationModel
    {

        public string Title { get; set; }

        public string LogContent { get; set; }

        public DateTime AddDate { get; set; }
    }


    [MapToType(typeof(ALog))]
    public class AddALogInput : ALogInputBase
    { 
    }

    [MapToType(typeof(ALog))]
    public class UpdateALogInput : ALogInputBase
    {
        [RequiredAttribute(ErrorMessage = "{0}不能为空")]
        public int Id { get; set; }
    }
}
